package com.hptpd.questionnairesurvey.repository;

import com.hptpd.questionnairesurvey.domain.Dimensionality;
import com.hptpd.questionnairesurvey.domain.UserSurvey;
import com.hptpd.questionnairesurvey.domain.UserSurveyScore;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * \* Created with IntelliJ IDEA.
 * \* Date: 2019/12/21
 * \*
 * \* Description:
 * \
 *
 * @author walter_long
 */
@Repository("userSurveyScoreRep")
public interface UserSurveyScoreRep extends JpaRepository<UserSurveyScore, String> {
    UserSurveyScore getByDimensionalityAndUserSurvey(Dimensionality dimensionality, UserSurvey userSurvey);

    List<UserSurveyScore> findByDimensionalityAndUserSurvey(Dimensionality dimensionality, UserSurvey userSurvey);
}
